<template>
  <div class="StudentTable">
    <el-table :data="tableData" style="width: 100%" :stripe="true">
      <!-- <el-table-column label="姓名">
        <template slot-scope="scope">
          <a @click="gotoUserDetail(scope.row.id)">{{ scope.row.name }}</a>
        </template>
      </el-table-column> -->

      <el-table-column prop="goodsName" label="商品名称"></el-table-column>
      <el-table-column prop="details" label="商品详情"></el-table-column>
      <el-table-column prop="money" label="商品价格"></el-table-column>
      <el-table-column prop="image" label="商品图片"></el-table-column>
      <el-table-column prop="inventory" label="商品库存"></el-table-column>
      <el-table-column prop="sales" label="商品销量"></el-table-column>
      <el-table-column prop="grade" label="商品等级"></el-table-column>
      <el-table-column prop="state" label="商品状态"></el-table-column>

      <el-table-column label="操作"> </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { searchcontract } from '@/api/user'

export default {
  name: 'StudentTable',
  data() {
    return {}
  },
  props: {
    tableData: {
      type: Array,
      default: () => []
    }
  },

  methods: {
    gotoUserDetail(id) {
      this.$router.push({ name: 'userInfo', query: { userId: id } })
    },
    gotocontractDetail(scope) {}
  },
  mounted() {}
}
</script>

<style lang="scss" scoped>
a {
  color: $color-primary;
}
</style>
